package cn.ncu.wechat.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * 会员等级表
 * @TableName member_level
 */
@TableName(value ="member_level")
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class MemberLevel implements Serializable {
    /**
     * 等级ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 等级名称
     */
    private String name;

    /**
     * 等级图标
     */
    private String icon;

    /**
     * 所需最低积分
     */
    private Integer minPoints;

    /**
     * 折扣率
     */
    private BigDecimal discount;

    /**
     * 包含的权益ID列表
     */
    @JsonInclude(JsonInclude.Include.ALWAYS)
    private String benefits;

    /**
     * 状态:1启用,2禁用
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}